package xyz.chenyongpeng.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class TicketDay {
    public static void main(String[] args) {
//        Calendar calendar = Calendar.getInstance();
//        calendar.set(Calendar.DAY_OF_YEAR, calendar.get(Calendar.DAY_OF_YEAR) + 30);
//        Date today = calendar.getTime();
//        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
//        String result = format.format(today);
//        System.out.println(result);


        for (int i = 0; i < 30; i++) {
            Calendar calendar2 = Calendar.getInstance();
            calendar2.set(Calendar.DAY_OF_YEAR, calendar2.get(Calendar.DAY_OF_YEAR)+i);
            Date today1 = calendar2.getTime();
            SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
            String result1 = format1.format(today1);
            System.out.println(result1);
        }
    }

}
